package cn.edu.xmu.orderpayment.order.microservice;

import cn.edu.xmu.orderpayment.order.microservice.vo.CouponCalRetVo;
import cn.edu.xmu.orderpayment.order.microservice.vo.CouponCalVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author Li Yixuan 22920192204232
 * @create: 2021/12/19
 */
@FeignClient(value = "coupon-service")
public interface CouponService {

    @PutMapping("internal/discountprices")
    InternalReturnObject<List<CouponCalRetVo>> calculateDiscount(@RequestBody List<CouponCalVo> vo);
}
